package com.example.demo.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("home")
@RestController
public class HomeController {

    private static Integer count = 0;

    //region 通过id查数据库实体
    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public Integer index() {
        count++;
        return count;
    }


}
